#pragma warning disable 0618
using System;
using System.Collections.Generic;
using Table.DataModel;
namespace Table.Dao
{
    public class TableParticalExtraExposedDao:DaoBase<TableParticalExtraExposed>
    {
        public override string GetFileName()
        {
            return "TableParticalExtraExposed.csv";
        }
        public override void BuildIndex()
        {
            if (cacheList != null)
            {
                cachePrimary = new Dictionary<string, TableParticalExtraExposed>(cacheList.Count);
            }
            base.BuildIndex();
        }
        public override void AddPrimaryIndex(TableParticalExtraExposed model)
        {
            #if UNITY_EDITOR
            if(cachePrimary.ContainsKey(model.transformIds)) UnityEngine.Debug.LogError("数据表id重复:TableParticalExtraExposed->id: " + model.transformIds);
            #endif
            cachePrimary[model.transformIds] = model;
        }
        protected override TableParticalExtraExposed ParseRowData(string[] rowData)
        {
            TableParticalExtraExposed data = new TableParticalExtraExposed();
            if (!string.IsNullOrEmpty(rowData[0]))
            {
                data.transformIds = rowData[0];
            }
            return data;
        }
    }
}
